@import './var.less';
@primary-color: #1890ff;

body {
  margin: 0;
  font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.65);
  background-color: #fff;

  .el-input__prefix {
    width: 25px;
    .iconfont {
      width: 25px;
      text-align: center;
      line-height: 34px;
      font-size: 12px;
    }
  }

  .el-button--text {
    &.text-danger {
      color: @themeRed;
      &.is-disabled,
      &:active,
      &:focus,
      &:hover {
        color: @disableThemeRed;
      }
    }
  }
}

*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
}

a {
  color: @primary-color;
  background-color: transparent;
  text-decoration: none;
  outline: none;
  cursor: pointer;

  &:hover {
    color: #40a9ff;
  }
}

.tooltip-label .el-tooltip {
  float: right;
  transform: translateY(10px);
}

.data-table-footer {
  // data-table 底部复用样式
  margin-top: 24px;
  text-align: right;
}

// 重置弹框样式
.el-message-box {
  border-radius: 0 !important;
}

// 全局滚动条修改
::-webkit-scrollbar {
  /* 整个滚动条 */
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  /* 滚动条中间滑动部分 */
  border-radius: 6px;
  background: rgba(223, 226, 232, 1);
  border: 1px solid rgba(248, 249, 251, 1);
}
::-webkit-scrollbar-track {
  /* 滚动轴 */
  background-color: #fff;
}
::-webkit-scrollbar-button {
  /* 滚动条两端方向按钮 */
  display: none;
}
// 表格的滚动条多余的内容
.el-table__fixed-right-patch {
  border-bottom: none !important;
}
/* IE适配: */
// scrollbar-arrow-color: transparent; /* 三角箭头的颜色 */
// scrollbar-shadow-color: transparent; /* 立体滚动条阴影的颜色 */
// scrollbar-darkshadow-color: transparent; /* 立体滚动条强阴影的颜色 */
// scrollbar-track-color: rgba(223, 226, 232, 1); /* 立体滚动条背景颜色 */
// scrollbar-base-color: rgba(223, 226, 232, 1); /* 滚动条的基本颜色 */

// elementUI中的form表单控件压缩，如果包含is-required则不压缩，需要填写内容
.el-form {
  .el-form-item {
    margin-bottom: 10px;
    &.is-required {
      margin-bottom: 20px;
    }
    &.is-error {
      margin-bottom: 20px;
    }
    .isdisplay {
      display: none !important;
    }
    .el-icon-search {
      font-size: 14px;
    }
  }
}

// 弹出框dialog增加边线
.el-dialog__header {
  border-bottom: @defaultBorder;
}
.el-dialog__footer {
  border-top: @defaultBorder;
}
// 重置级联组件样式
.el-scrollbar {
  .el-scrollbar__wrap {
    width: 100%;
    overflow: scroll;
  }
  .el-scrollbar__bar {
    display: none;
  }
}
// 图片预览置顶
.viewer-container {
  z-index: 99999 !important;
}

// 解决弹出信息被覆盖问题
.notify_class {
  z-index: 9999 !important;
}
.el-tooltip__popper {
  max-width: 300px;
}

// .is-active > span {
//   color: #fff !important;
// }
// .is-active > i {
//   color: #fff !important;
// }
.menu-item .is-active {
  span {
    color: #fff;
  }
  i {
    color: #fff;
  }
}
.isAddWidth {
  width: 91px;
  text-align: center;
}
// tip标题
.tip-blue {
  padding: 0 10px;
  border-left: 5px solid @themeBlue;
  margin: 20px 0;
  font-size: 20px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  color: rgba(35, 113, 197, 1);
  height: 20px;
  line-height: 20px;
}

.full-screen-loading {
  font-size: 40px;
}
.status-dot {
  flex: 0 0 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;

  &.status-0 {
    background: #2371c5;
  }

  &.status-1 {
    background: #2371c5;
  }

  &.status-2 {
    background: #49c0af;
  }

  &.status-3 {
    background: #d85365;
  }

  &.status-4 {
    background: #2371c5;
  }

  &.status-5 {
    background: #eb8430;
  }
}

.status-text {
  flex: 1;
}
.el-header {
  // padding: 0 !important;
}
.el-header {
  // padding: 0px !important;
}

.common-title {
  font-family: PingFangSC-Medium;
  font-size: 16px;
  color: #26344c;
  letter-spacing: 0;
  font-weight: bold;
  padding: 8px;
  background-color: #fff;
  border-bottom: 1px solid #eef0f5;
}
.common-header {
  padding: 8px;
  background-color: #fff;
  margin-bottom: 8px;
}
.common-main {
  padding: 8px;
  background-color: #fff;
}

.nuxt-content .block {
  margin-bottom: 10px;
  background-color: #fff;
}
.nuxt-content h1 {
  font-size: 20px;
  font-weight: 600;
  color: #26344c;
  line-height: 28px;
}
.nuxt-content .block header {
  padding: 12px 16px;
  border-bottom: 1px solid #eef0f5;
  display: flex;
}
.nuxt-content h2 {
  font-size: 16px;
  font-weight: 600;
  color: #26344c;
  line-height: 22px;
}
.nuxt-content .block section {
  position: relative;
  padding: 20px 16px;
}
.nuxt-content .block .block-item {
  margin-bottom: 10px;
}
